package com.viii.action;


import org.apache.struts.actions.LookupDispatchAction;
import org.apache.struts.action.*;
import org.apache.struts.action.Action;
import org.apache.struts.Globals;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletRequest;
import java.util.Map;
import java.util.HashMap;
import java.util.Locale;


public class MyBaseAction extends LookupDispatchAction
{
    private static String START = "Start";


    protected Map getKeyMethodMap()
    {
        Map<String, String> map = new HashMap<String, String>();
	    map.put("button.connect", "connect");
	    return map;
    }


    public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception
    {
        httpServletRequest.getSession().setAttribute(Globals.LOCALE_KEY, new Locale("ru","RU",""));

        return actionMapping.findForward(START); 
    }
}
